home *** CD-ROM | disk | FTP | other *** search
- From: _GOYRA_@msn.com (David Byrden)
- Subject: RE: structs as member of classes
- Date: 15 Mar 96 04:37:11 -0800
- References: <4i5tod$qhe@news.asu.edu>
- Message-ID: <00001a81+0000ad4f@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
-
- >>I get the error
- >>Error: Character::CharPlayer may not be a type name.
- >>when trying to change the value in a struct which is a private
- member of a class.
-
- >>void Character::init_player()
- >>{
- >> CharPlayer.PlrSts.strength = 15;
-
-
- Post the Character class declaration. I think you are using one
- identifier too many in that last statement, but I can't tell which
- one it is.
-
- David
-